extends ./../layout.jade
append script
    script.
        $(function(){
            $('.popup').popup();
            $('.ui.pointing.secondary.menu a.item').eq(3).addClass('active');
            $('.ui.top.attached.tabular.menu .item').tab();
        });
   

block content
    br
    .ui.breadcrumb
        a.section(href="/home") 首页
        i.right.chevron.icon.divider
        a.section #{project.name}
        i.right.chevron.icon.divider
        a.section.active 中心线
        
    h2.ui.header
        span.ui.header #{project.name}配置
        .sub.header 中心线
    .ui.divider
    include navigator.jade
    .ui.top.attached.tabular.menu
        a.active.item(data-tab="first") 上传人工中心线
        a.item(data-tab="sec") 人工中心点坐标
        a.item(data-tab="third") 上传设计中心线
        a.item(data-tab="forth") 设计中心点坐标
    .ui.buttom.attached.active.tab.segment(data-tab="first")
        form.ui.form(action=url,method="post",enctype="multipart/form-data")
            input(type="hidden",name="centerType",value="manual")
            .field
                input(type="file",name="file",required,accept=".csv")
            .field
                button.ui.button.blue(type="submit") 上传人工中心线
    .ui.buttom.attached.tab.segment(data-tab="sec")
        if manualCenters.length>0
            a.ui.button.red(href=url+'/deleteAll/manual') 清空所有
            table.ui.table.celled.center.aligned
                thead
                    tr
                        th 序号
                        th E
                        th N
                        th H
                        th 里程
                tbody
                    each center,index in manualCenters
                        tr
                            td=index+1
                            td=center.e
                            td=center.n
                            td=center.h
                            td=center.mileage
    .ui.buttom.attached.tab.segment(data-tab="third")
        form.ui.form(action=url,method="post",enctype="multipart/form-data")
            input(type="hidden",name="centerType",value="design")
            .field
                input(type="file",name="file",required,accept=".csv")
            .field
                button.ui.button.blue(type="submit") 上传设计中心线
    .ui.buttom.attached.tab.segment(data-tab="forth")
        if designCenters.length>0
            a.ui.button.red(href=url+'/deleteAll/design') 清空所有
            table.ui.table.celled.center.aligned
                thead
                    tr
                        th 序号
                        th E
                        th N
                        th H
                        th 里程
                tbody
                    each center,index in designCenters
                        tr
                            td=index+1
                            td=center.e
                            td=center.n
                            td=center.h
                            td=center.mileage
                            
                     

    